﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_Templet.Edit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>模板修改</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>

<div class="frmstatic" style="display:block;">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="nav_menu">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align="left">
                <table>
                    <tr>
                        <td><img src="../images/main_home.gif" width="16" height="16" /></td>
                        <td><label>内容&nbsp;&gt;&nbsp;模板管理&nbsp;&gt;&nbsp;修改模板</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <table>
                    <tr>
                        <td><img src="../images/arrow_left.png" width="16" height="16" /></td>
                        <td><label><a href="./Admin.aspx" class="sub_menu">绑定模板</a></label> |  </td>
                        <td><label><a href="./List.aspx" class="sub_menu">模板列表</a></label> |  <//td>
                        <td><label><a href="./Replace.aspx" class="sub_menu">替换模板</a></label> |  </td>
                        <td><label><a href="javascript:window.history.back();" class="sub_menu">返回</a></label></td>
                    </tr>
                </table>
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>

<div class="frmstatic" style="display:block; margin-top:10px;">
<form id="form1" runat="server">
<span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
<div class="controls">


          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
            
            <tr>
              <td width="145" align="right" nowrap bgcolor="#F4FBFF">选择栏目:</td>
              <td width="1040" bgcolor="#F4FBFF">
                  <asp:DropDownList ID="ddlMenu" runat="server"></asp:DropDownList>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                      ControlToValidate="ddlMenu" ErrorMessage="<span style='color:#ff0000;'>请填选择栏目</span>" Display="Dynamic"></asp:RequiredFieldValidator>
              </td>
            </tr>
            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">模板类型:</td>
              <td bgcolor="#F4FBFF">
                  <asp:DropDownList ID="ddlType" runat="server">
                    <asp:ListItem Text="请选择类型" Value=""></asp:ListItem>
                    <asp:ListItem Text="动态页" Value="0"></asp:ListItem>
                    <asp:ListItem Text="聚合页" Value="1"></asp:ListItem>
                    <asp:ListItem Text="列表页" Value="2"></asp:ListItem>
                    <asp:ListItem Text="内容页" Value="3"></asp:ListItem>
                  </asp:DropDownList>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                      ControlToValidate="ddlType" ErrorMessage="<span style='color:#ff0000;'>请填选择类型</span>" Display="Dynamic"></asp:RequiredFieldValidator>
               </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">模板路径:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtFilePath" runat="server" CssClass="input" Width="70%"></asp:TextBox>
               </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">生成路径:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtFileCreatePath" runat="server" CssClass="input" Width="40%"></asp:TextBox>
                  <asp:TextBox ID="txtFileName" runat="server" CssClass="input" Width="15%"></asp:TextBox>
                  <asp:TextBox ID="txtFileExtName" runat="server" CssClass="input" Width="15%"></asp:TextBox>
                  (目录+文件名+扩展名)
               </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">模板描述:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtDescription" runat="server" CssClass="input" Width="95%" 
                      Height="174px" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            
            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">模板属性:</td>
              <td bgcolor="#F4FBFF">
                  <asp:CheckBox ID="cbxEnable" runat="server" Text="启用模板" />
                  <asp:CheckBox ID="cbxHasSiteMap" runat="server" Text="站点地图" />
                </td>
            </tr>

            <tr>
              <td bgcolor="#F4FBFF">&nbsp;</td>
              <td bgcolor="#F4FBFF">
                <asp:Button BackColor="#F4FBFF" CssClass="bt" ID="btnUpdate" runat="server" 
                      Text=" 修改 " onclick="btnUpdate_Click" />
                 <asp:HiddenField ID="hidReferrer" runat="server" />
              </td>
            </tr>
          </table>
          
  
</div>
<span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</form>
</div>

</body>
</html>

